package org.jeecg.modules.manage.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 账户充值
 * @Author: yfkj
 * @Date:   2023-02-22
 * @Version: V1.0
 */
@Data
@TableName("caishui_recharge")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="caishui_recharge对象", description="账户充值")
public class CaishuiRecharge implements Serializable {
    private static final long serialVersionUID = 1L;


	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;

	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;

	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    /**税源地ID*/
    @Excel(name = "服务公司", width = 25, dictTable = "caishui_service_company", dicText = "name", dicCode = "id")
    @Dict(dictTable = "caishui_service_company", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "税源地ID")
    private String companyId;

    /**商户ID*/
    @Excel(name = "签约商户", width = 25, dictTable = "caishui_business", dicText = "name", dicCode = "id")
    @Dict(dictTable = "caishui_business", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "商户ID")
    private String businessId;

    /**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private Long tenantId;

    /**用户ID*/
    @ApiModelProperty(value = "用户ID")
    private String userId;

    /**渠道商户ID*/
    @ApiModelProperty(value = "渠道商户ID")
    private String channelBusinessId;

	/**记账流水号*/
	@Excel(name = "记账流水号", width = 15)
    @ApiModelProperty(value = "记账流水号")
    private String orderNo;

    /**主帐号*/
    @ApiModelProperty(value = "主帐号")
    private String mainAccount;

    /**记账子单元名称*/
    @ApiModelProperty(value = "记账子单元名称")
    private String subUnitName;

    /**记账子单元编号*/
    @ApiModelProperty(value = "记账子单元编号")
    private String subUnitCode;

	/**付款户名*/
	@Excel(name = "付款户名", width = 15)
    @ApiModelProperty(value = "付款户名")
    private String paymentAccountName;

	/**付款帐号*/
	@Excel(name = "付款帐号", width = 15)
    @ApiModelProperty(value = "付款帐号")
    private String paymentAccount;

	/**收款户名*/
	@Excel(name = "收款户名", width = 15)
    @ApiModelProperty(value = "收款户名")
    private String collectionAccountName;

	/**收款账号*/
	@Excel(name = "收款账号", width = 15)
    @ApiModelProperty(value = "收款账号")
    private String collectionAccount;

	/**充值金额*/
	@Excel(name = "充值金额", width = 15)
    @ApiModelProperty(value = "充值金额")
    private Double amount;

	/**服务费*/
	@Excel(name = "服务费", width = 15)
    @ApiModelProperty(value = "服务费")
    private Double serviceFee;

	/**交易摘要*/
	@Excel(name = "交易摘要", width = 15)
    @ApiModelProperty(value = "交易摘要")
    private String remark;

	/**充值状态：0-充值中，1-充值成功，2-充值失败*/
    @ApiModelProperty(value = "充值状态")
    @Dict(dicCode = "caishui_recharge_status")
    private Integer status;

	/**审核状态：0-审核中，1-审核通过，2-审核拒绝*/
    @ApiModelProperty(value = "审核状态")
    private Integer checkStatus;

	/**充值时间*/
	@Excel(name = "充值时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "充值到账时间")
    private Date receiptTime;
}
